package com.example.im_voice2word;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.widget.EditText;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        DisplayMetrics dm = getResources().getDisplayMetrics();
        int screenWidth = dm.widthPixels;
        int screenHeight = dm.heightPixels;
        float density = dm.density;
        EditText et =  findViewById(R.id.editText);
        et.setFocusable(true);
        et.requestFocus();

        et.setFocusableInTouchMode(true);
        System.out.println("-----------------"+(int)(screenHeight / density));

        System.out.println(screenHeight);
        System.out.println(screenWidth);
//        et.setHeight(screenHeight);

        System.out.println("-----------------");
//        Intent i = getIntent();


    }
}
